import style from './css/IndexPeople.module.scss'
interface Props {
    children?: any;
    paths?:String
}
function People(props: Props) {
    const lookdetail=()=>{
        console.log(props.paths)
    }
    return ( 
        <>
            <div className={style.People}>
                <p className={style.title}>{props.children[0]}</p>
                <div className={style.image}>{props.children[1]}</div>
                <p className={style.peopleNum}>{props.children[2]}</p>
                <span className={style.ren}>人</span>
                <div className={style.state}>
                    {props.children[3]}
                    {props.children[4]}
                </div>
                <span className={style.lookdetail} onClick={()=>lookdetail()}>查看详情</span>
            </div>
        </>
     );
}

export default People;